package com.ruoyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.domain.OrderDetailBom;
import com.ruoyi.domain.PurchaseDetailBom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 请购单管理Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
@Mapper
public interface OrderDetailBomMapper extends BaseMapper<OrderDetailBom>
{
    @Select("SELECT *from  erp_purchase_request_management a join  requisition_item b  on a.id=b.requisition_id join erp_material c on b.material_id=c.id WHERE a.id=#{id}")
List<OrderDetailBom> orderwuliaoId(@Param("id") int id);
}

